<template>
  <div style="height: 100%">
    <iframe
      :src="`/static/pdf/web/viewer.html?file=${encodeURIComponent(props.src)}`"
      frameborder="0"
      width="100%"
      height="100%"
    ></iframe>
    <!-- <PDFViewer
      page-scale="page-fit"
      :width="1200"
      :height="800"
      theme="dark"
      :src="src"
      @loaded="onLoaded" /> -->
  </div>
</template>

<script setup>
import { isExternal } from "@/utils/validate";
const props = defineProps({
  src: {
    type: String,
    default: ""
  },
});
// const props = defineProps({
//   src: {
//     type: String,
//     default: ""
//   },
// });
const src = ref('http://47.76.217.195:8080/profile/upload/2025/04/22/20250402_202501_20250422154424A013.pdf')
</script>

<style lang="scss" scoped>

</style>
